package file;

import org.w3c.dom.ls.LSOutput;

import java.io.File;
import java.io.IOException;

/**
 * @Author: Miyako
 * @Date: 2024-07-15-15:54
 * @Description:
 */
public class FileDemo01 {
    public static void main(String[] args) throws IOException {
        File f1 = new File("Miyako1.txt");
        System.out.println(f1.getPath());
        System.out.println(f1.getAbsolutePath());
        System.out.println(f1.exists());
        f1.createNewFile();
        System.out.println(f1.canRead());
        System.out.println(f1.hashCode());
        System.out.println(f1.isHidden());
        System.out.println(f1.getName());
        System.out.println(f1.length());


    }
}
